﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using System.Xml.XPath;

namespace MetaDataResourcesTools
{
    public class Tools
    {
        public static string Find(XDocument doc, string key){
            string toReturn = string.Empty;
            XElement elt = doc.XPathSelectElement(string.Format("root/data[name='{0}']", key));
            toReturn = elt.Value;
            return toReturn;
        }
    }
}
